package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Collections;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper //@Mapper注解将mapper标注为spring的一个组件
//使用mapper将数据传入数据库
public interface CollectionsMapper {

//用户列表
    List<Collections> list();

    List<Collections> listByCondition(BaseRequest baseRequest);

    void save(Collections collections);

    Collections getById(Integer id);

    void updateById(Collections collections);

    void deleteById(Integer id);

//    Collections getByCollectionsName(String collectionsName);
//
//    Collections getByCollectionsNameAndPassword(@Param("collectionsName") String collectionsName, @Param("password") String password);

}
